#include <algorithm>
#include <iostream>
#include <cstring>
#include <cmath>
using namespace std;
typedef unsigned long long ll;

char a[30], b[30];
int main()
{
    cin >> a;
    cin >> b;
    //b[0] = a[0];
    //b[1] = a[1];
    int flag = 1;
    for (int i = 2; i < strlen(a); i++)
    {
        /*
        if (a[i] == a[i - 1])
        {
            flag += 1;
            b[i] = a[i] - flag;
        }
        else
        {
            flag = 1;
            b[i] = a[i] - flag;
        }
        */
        printf("%d ", a[i] - b[i]);
    }
    //cout << b << endl;
    return 0;
}